[WPF] selected item in listbox unreadable because of the color !
        Posted  
        
            by Anna
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Anna
        
        
        
        Published on 2010-03-24T14:47:45Z
        Indexed on 
            2010/03/24
            18:33 UTC
        
        
        Read the original article
        Hit count: 483
        
I dynamically create a collection of stackpanels in my listbox. In this stackpanel are contained labels and checkbox horizontally aligned. The problem is when I click on a stackpanel, the selection is unreadable because the line become dark-blue whereas the letters stay black so black on blue, you see nothing... how can I dynamically change the forecolor of the selected elements in the stackpanel ? I say dynamically and not in the xml file, because all those elements are dynamically created, base on a database...
thanksssss!!
© Stack Overflow or respective owner